package com.fs.procure.service.impl;

import java.util.List;

import com.fs.procure.pojo.Insto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.fs.procure.mapper.InstoMapper;
import com.fs.procure.service.IInstoService;

/**
 * 入库申请Service业务层处理
 * 
 * @author lan
 * @date 2024-08-15
 */
@Service
public class InstoServiceImpl implements IInstoService 
{
    @Autowired
    private InstoMapper instoMapper;

    /**
     * 查询入库申请
     * 
     * @param instoId 入库申请主键
     * @return 入库申请
     */
    @Override
    public Insto selectInstoByInstoId(Long instoId)
    {
        return instoMapper.selectInstoByInstoId(instoId);
    }

    /**
     * 查询入库申请列表
     * 
     * @param insto 入库申请
     * @return 入库申请
     */
    @Override
    public List<Insto> selectInstoList(Insto insto)
    {
        return instoMapper.selectInstoList(insto);
    }

    /**
     * 新增入库申请
     * 
     * @param insto 入库申请
     * @return 结果
     */
    @Override
    public int insertInsto(Insto insto)
    {
        return instoMapper.insertInsto(insto);
    }

    /**
     * 修改入库申请
     * 
     * @param insto 入库申请
     * @return 结果
     */
    @Override
    public int updateInsto(Insto insto)
    {
        return instoMapper.updateInsto(insto);
    }

    /**
     * 批量删除入库申请
     * 
     * @param instoIds 需要删除的入库申请主键
     * @return 结果
     */
    @Override
    public int deleteInstoByInstoIds(Long[] instoIds)
    {
        return instoMapper.deleteInstoByInstoIds(instoIds);
    }

    /**
     * 删除入库申请信息
     * 
     * @param instoId 入库申请主键
     * @return 结果
     */
    @Override
    public int deleteInstoByInstoId(Long instoId)
    {
        return instoMapper.deleteInstoByInstoId(instoId);
    }
}
